package com.carpedil.sm.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/** @author Administrator */
@PropertySource(value = "classpath:jdbc.properties")
@Component("dbProperties")
@Data
public class DBProperties {
  @Value(value = "${driverClassName}")
  private String driverClassName;

  @Value(value = "${jdbcUrl}")
  private String url;

  @Value(value = "${user}")
  private String username;

  @Value(value = "${pwd}")
  private String password;
}
